package org.mnswf.scorchedearth.messages {
	
	import org.mnswf.net.IUDPMessage;
	import flash.events.EventDispatcher;
	
	/**
	 * @author Danny Patterson
	 */
	public class FailureMessage extends EventDispatcher implements IUDPMessage {
		
		public static const BLOCKED_CONNECTION:int = 0;
		
		[Bindable]
		public var code:int;
		[Bindable]
		public var description:String;
		
		public function FailureMessage() {}
		
		/**
		 * @see org.mnswf.net.IUDPMessage#toObject
		 */
		public function toObject():Object {
			var obj:Object = new Object();
			obj.code = code;
			obj.description = description;
			return obj;
		}
	
	}
	
}